package fu.capstone.hanoicityguide.business.bo.itinerary;

import java.util.ArrayList;

import android.content.Context;
import fu.capstone.hanoicityguide.business.model.Itinerary;
import fu.capstone.hanoicityguide.business.model.Place;
import fu.capstone.hanoicityguide.dataaccess.itinerary.ItineraryDAO;
import fu.capstone.hanoicityguide.dataaccess.itinerary.ItineraryDAOImp;

public class ItineraryBOImp implements ItineraryBO {

	private Context context;
	private ItineraryDAO dao;

	public ItineraryBOImp() {

	}

	public ItineraryBOImp(Context context) {
		super();
		this.context = context;
		this.dao = new ItineraryDAOImp(context);
	}

	public Context getContext() {
		return context;
	}

	public void setContext(Context context) {
		this.context = context;
	}

	@Override
	public ArrayList<Itinerary> listItinerary(String keyword, String sorter) {
		// TODO Auto-generated method stub
		return dao.listItinerary(keyword, sorter);
	}

	@Override
	public ArrayList<Place> browseItinerary(int itineraryId) {
		// TODO Auto-generated method stub
		return dao.browseItinerary(itineraryId);
	}

}
